package com.zoro.barn.business.service.sqldocument.business.sql.dao;

import com.zoro.barn.business.service.sqldocument.business.sql.entity.BarnSqlHistory;
import com.zoro.barn.commons.db.annotations.MybatisMapper;

import java.util.List;

/**
 * @author zhaoxingwu
 */
@MybatisMapper
public interface BarnSqlHistoryMapper {

    void insert(BarnSqlHistory history);

    /**
     * 通过 sql id 删除历史数据
     *
     * @param sqlId sql id
     */
    void deleteBySqlId(String sqlId);


    /**
     * 查询 sql的历史数据
     *
     * @param sqlId sql id
     * @return result
     */
    List<BarnSqlHistory> getBySqlId(String sqlId);

}
